Implementing First Class Relationships in Java
نویسندگان
چکیده
Relationships have been an essential component of OO design since the 90s but OO languages still do not support firstclass relationships. Hence, programmers must implement relationships in an ad-hoc fashion which results in unnecessarily complex code. We have developed a new model for relationships in OO which distinguishes tuples and relationships (mutable sets of tuples) and supports both as first-class constructs. This paper describes the design of a library for Java which provides this model.
منابع مشابه
First-Class Relationships in an Object-Oriented Language
In this paper we investigate the addition of first-class relationships to a prototypical object-oriented programming language (a “middleweight” fragment of Java). We provide language-level constructs to declare relationships between classes and to manipulate relationship instances. We allow relationships to have attributes and provide a novel notion of relationship inheritance. We formalize our...
متن کاملProviding Continuations in Java via Source Code Transformations
Implementing first class continuations poses a problem in Java because virtual machines generally provide no facilities to access or replace the run-time stack from the source code. This project report presents a virtual machine independent and compiler independent technique by which the source code of Java programs can be transformed to easily and efficiently manipulate (partial) continuations...
متن کاملImplementing Precision Health Care Program at Hospitals in Indonesia. Is It Possible?
Background: A precision health care approach is needed in the context of the healthcare system, especially as an effort to improve the self-management activities of diabetes patients. Thus, the purpose of this study was to explore the perception of the possibility of implementing a precision health care program in hospitals through interviews with policymakers and health professionals. Methods...
متن کامل: a program for pedigree relationship reconstruction and kin group assignments using genetic markers
KINGROUP is an open source java program implementing a maximum likelihood approach to pedigree relationships reconstruction and kin group assignment. kingroup implements a new method (currently being performance tested) for reconstructing groups of kin that share a common relationship by estimating an overall likelihood for alternative partitions. A number of features found in KINSHIP (Goodnigh...
متن کاملType Variability and Completeness of Interfaces in Java Applications
Interfaces are widely used as central design elements of Java applications. Although interfaces are abstract types similar to abstract classes, the usage of interfaces in Java applications may considerably differ from the usage of abstract classes. Unlike abstract classes, interfaces are meant to enable multiple inheritance in Java programs. Hence, interfaces are meant to encode shared similari...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2008